package com.fessc.develop.utils;

import com.alibaba.fastjson.serializer.JSONSerializer;
import com.alibaba.fastjson.serializer.ObjectSerializer;

import java.io.IOException;
import java.lang.reflect.Type;

/**
 * 结算中心国别代码转换为银行代码
 */

public class NatConvert implements ObjectSerializer {
    @Override
    public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException {
        serializer.write(BusiUtil.getEnumDataName((String)object, "NAT"));  //国别转换，结算中心代码转换为银行代码
    }
}
